package com.common.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
@Data

public class BaseEntity implements Serializable {
    @TableField(value = "id")
    private Long id;
    /**
     * 逻辑删除 0 未删除 1 已删除 默认值为0
     */
    @TableLogic
    private Boolean isDeleted;
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updated_time",fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;
}
